package sprint.view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

@SuppressWarnings("serial")
public class TalkView extends JFrame {
	
	public JPanel oneSmole = new JPanel(new BorderLayout(5,5));
	public JPanel twoSmole = new JPanel(new BorderLayout(5,5));
	public JPanel threeSmole = new JPanel(new BorderLayout(20,20));	
	public JPanel southP = new JPanel(new FlowLayout());
	public Font f1 = new Font("bold",Font.BOLD,30);
	public JTextArea showMassge = new JTextArea(50,50);
	public JTextField sendMassge = new JTextField(20);
	public JButton sendbt = new JButton("전송");

	
	public TalkView(){
		super();
		talkGrideView();		
	}

	private void talkGrideView() {
		// TODO Auto-generated method stub
		setLayout(new BorderLayout(20,20));
		
		oneSmole.setBackground(Color.white);
		twoSmole.setBackground(Color.white);
		threeSmole.setBackground(Color.white);
		southP.setBackground(Color.white);
	
		
		this.add("North",new JLabel("   "));
		this.add("South",new JLabel("    "));
		this.add("West",new JLabel("   "));
		this.add("East",new JLabel("   "));
		this.add("Center",oneSmole);
		
		oneSmole.add("North",new JLabel("   "));
		oneSmole.add("South",new JLabel("   "));
		oneSmole.add("West",new JLabel("   "));
		oneSmole.add("East",new JLabel("   "));
		oneSmole.add("Center",twoSmole);
		
		twoSmole.add("North",new JLabel("   "));	
		twoSmole.add("South", southP);
		twoSmole.add("West",new JLabel("   "));
		twoSmole.add("East",new JLabel("   "));								
		twoSmole.add("Center",showMassge);

		
		southP.add(sendMassge);
		southP.add(sendbt);
		

	}
}
